+2007-01-26 Michael Natterer <mitch@imendio.com>
+
+ * gtk/gtkentrycompletion.c (gtk_entry_completion_insert_prefix):
+ only block/unblock completion->priv->insert_text_id if it is
+ actually connected. While this can't happen the way GtkEntry
+ itself uses the completion, it's still public API and should not
+ blindly call functions that will spit warnings (fix taken from
+ maemo-gtk).
+
2007-01-25 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkwindow.c: Reduce locking overhead by not repeatedly getting
gboolean done;
gchar *prefix;
- g_signal_handler_block (completion->priv->entry,
- completion->priv->insert_text_id);
+ if (completion->priv->insert_text_id > 0)
+ g_signal_handler_block (completion->priv->entry,
+ completion->priv->insert_text_id);
+
prefix = gtk_entry_completion_compute_prefix (completion);
if (prefix)
{
0, prefix, &done);
g_free (prefix);
}
- g_signal_handler_unblock (completion->priv->entry,
- completion->priv->insert_text_id);
+
+ if (completion->priv->insert_text_id > 0)
+ g_signal_handler_unblock (completion->priv->entry,
+ completion->priv->insert_text_id);
}
/**